﻿@using Microsoft.AspNetCore.Html;
@model UserBlogViewModel
@{

    ViewBag.Title = Model.Title;
}
<h1>
    <label asp-for="Title">@Model.Title</label>
</h1>
<div class="layui-panel layui-font-17">
    <div style="padding: 32px;">
        <a style="margin-left:10px" class="layui-icon layui-icon-username" asp-controller="User" asp-action="Index">
            <label asp-for="UserName">@Model.UserName</label>
        </a>
        <label style="margin-left:10px" class="layui-icon layui-icon-time">已于 @Model.UpdateTime 修改</label>
        <i style="margin-left:10px" class="layui-icon layui-icon-eye"></i>
        <label asp-for="Views">@Model.Views</label>
        <label style="margin-left:10px" class="layui-icon layui-icon-note" asp-for="BlogType">文章分类:@Model.BlogType</label>
        <br />
    </div>
</div>

<div >
    @*将Html字符串转为Html标签*@
    @(new HtmlString(@Model.Content))
</div>

